Skip to content

Have Buffer class implement the Seekable interface#361

Merged
thekid merged 9 commits intoxp-framework:mainfrom
thekid:feature/seekable-buffers
Apr 22, 2026
Merged

Have Buffer class implement the Seekable interface#361
thekid merged 9 commits intoxp-framework:mainfrom
thekid:feature/seekable-buffers

Conversation

@thekid
Copy link
Copy Markdown
Member

@thekid thekid commented Apr 20, 2026

This pull request makes the io.streams.Buffer class useable for more I/O purposes. The file pointer is advanced for read and write operations, just like inside io.File instances!

TODO

  • Implement io.streams.Seekable.
  • Add support for passing io.File instances to constructor
  • Add $persist parameter to constructor to keep passed files

thekid added 2 commits April 20, 2026 20:45
If an `io.TempFile` instance is passed, its destructor may have
deleted the file itself
@thekid thekid merged commit 99fcc1c into xp-framework:main Apr 22, 2026
17 checks passed
@thekid
Copy link
Copy Markdown
Member Author

thekid commented Apr 23, 2026

@thekid thekid deleted the feature/seekable-buffers branch April 23, 2026 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant